<template>
  <div class="home">
      欢迎 <strong >{{ user.nickName }}</strong> !
      <!-- <el-button @click="upload">上传测试</el-button> -->
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <span>工作台</span>
        </div>
        <el-empty description="暂无数据"></el-empty>
      </el-card>
  </div>
</template>
<script>
import idaas from "@/apis/idaas";
import { event } from "@ice/stark-data";
export default {
  data(){
    return {
      user: {
        nickName: ""
      }
    }
  },
  async created(){
   let user= await idaas.userinfo()
   this.user=user.data
  },
  methods: {
    innerJump() {
      this.$router.push('/about')
    },
    outerJump() {
      this.$router.push('/child-app1')
    },
    upload(){
      event.emit('oarsUpload',"testnamespace","testparent");
    },
  }
}
</script>
<style>
.box-card{
  margin-top: 15px;
}
</style>